How do I move an image (ImageView) in AbsoluteLayout to X Y [android]

Posted by Maneesh on Stack Overflow See other posts from Stack Overflow or by Maneesh
Published on 2010-06-17T11:46:38Z Indexed on 2010/06/17 12:03 UTC
Read the original article Hit count: 869

Filed under:
|

my main.xml look like this:

<AbsoluteLayout
   android:id="@+id/AbsoluteLayout01"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   xmlns:android="http://schemas.android.com/apk/res/android"> 

   <ImageView
      android:layout_height="wrap_content"
      android:layout_x="247dip"
      android:layout_width="wrap_content"
      android:layout_y="96dip"
      android:id="@+id/Ball"
      android:src="@drawable/ball"/>

</AbsoluteLayout>

And Java

ball = (ImageView) findViewById(R.id.Ball);

How do I do if I whant to move the ball from x=247dip y=96dip to x=100 and y=100 while my app is running?

© Stack Overflow or respective owner

Related posts about android

Related posts about layout